<link rel="stylesheet" href="assets/css/security.css">

<div id="security">
    <img src="assets/img/logo.png" class="logo" />
    <form ng-submit="processSubmit()" ng-show="!success">
        <div class="form-group">
            <i class="iconfont icon-user"></i>
            <input type="number" name="mobile" ng-model="mobile" maxlength="11" placeholder="请输入手机号" autofocus />
        </div>
        <div class="form-group">
            <i class="iconfont icon-captcha"></i>
            <input type="number" name="captcha" ng-model="captcha" maxlength="6" placeholder="请输入验证码" />
            <button type="button" class="btn-captcha" ng-click="sendCaptcha()" ng-disabled="captchaSecond">{{captchaButton}}</button>
        </div>
        <div class="form-group">
            <i class="iconfont icon-lock"></i>
            <input type="password" name="password" ng-model="password" placeholder="请输入新密码" />
        </div>
        <div class="form-group">
            <i class="iconfont icon-lock"></i>
            <input type="password" name="repassword" ng-model="repassword" placeholder="请确认新密码" />
        </div>
        <div class="form-group">
            <button type="submit" class="btn-primary">提交</button>
            <div class="form-tips" ng-show="errorMessage">
                <i class="iconfont icon-warning"></i>
                {{errorMessage}}
            </div>
        </div>
    </form>
    <div class="weui_msg" ng-show="success">
        <div class="weui_icon_area"><i class="weui_icon_success weui_icon_msg"></i></div>
        <div class="weui_text_area">
            <h2 class="weui_msg_title">密码修改成功！</h2>
        </div>
        <div class="weui_opr_area">
            <p class="weui_btn_area"><a href="/login" class="weui_btn weui_btn_primary">立即登录</a></p>
        </div>
    </div>
    <div class="help">
        <a ng-href="/login">登录帐号</a>
    </div>
</div>
